package per.ethan.cloud.provider.core.controller;

import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import per.ethan.cloud.provider.core.stream.MessageProvider;

/**
 * @author Ethan
 * @date 2020/03/31 18:19
 */
@RestController
@RequestMapping("/stream/provider")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class MessageProviderController {

    private final MessageProvider messageProvider;

    @GetMapping("/send")
    @ApiOperation(value = "消息发送")
    public void send() {
        messageProvider.send();
    }

}
